<{include file="public/header.html"}>
		<div class="xinsu-right">
			<div class="xinsu-right-title" id="xinsu-zhishu"></div>
			<div class="xinsu-right-content">
				<form class="layui-form xinsu-form" action="" method="get">
					<div class="layui-form-item">
						<div class="layui-inline">
						    <label class="layui-form-label xinsu-form-label">查询日期</label>
						    <div class="layui-input-inline">
						        <input type="text" name="begin_time" id="begin_time" autocomplete="off" class="layui-input" onclick="layui.laydate({elem: this,max:laydate.now(-1)})" value="<{if 0 != $begin_time}><{$begin_time}><{/if}>">
						    </div>
						    <label class="layui-form-label xinsu-form-label2">至</label>
						    <div class="layui-input-inline">
						       <input type="text" name="end_time" id="end_time" autocomplete="off" class="layui-input" onclick="layui.laydate({elem: this,max:laydate.now(-1)})" value="<{if 0 != $end_time}><{$end_time}><{/if}>">
						    </div>
						</div>
						<button class="layui-btn xinsu-btn" >查询</button>
					</div>
				</form>	
				<div class="layui-form">
					<table class="layui-table">
						<thead>
							<tr>
								<th>平仓编号</th>
								<th>代码/名称</th>
								<th>建仓时间</th>
								<th>入价</th>
								<th>平仓时间</th>
								<th>出价</th>
								<th>股票类型</th>
								<th>数量</th>
								<th>手续费</th>
								<th>留仓天/费</th>
								<th>管理费</th>
								<th>印花税</th>
								<th>盈亏</th>
							</tr> 
						</thead>
						<tbody>
							<{if empty($list) == false}>
							<{foreach $list as $val}>
							<tr>
								<td><{$val.order_no}></td>
								<td><a class="xinsu-fontcolor-blue xinsu-stock-figure" href="javascript:;" data="<{$val.stock}>"><{$val.stock_name}></a></td>
								<td><{date("Y-m-d H:i:s", $val["bull_time"])}></td>
								<td class="xinsu-fontcolor-red"><{$val.bull_price}></td>
								<td class="xinsu-fontcolor-blue"><{date("Y-m-d H:i:s", $val["sell_time"])}></td>
								<td class="xinsu-fontcolor-green"><{$val.sell_price}></td>
								<{if $val.sell_type == 1}>
								<td class="xinsu-fontcolor-red">融资↑</td>
								<{else}>
								<td class="xinsu-fontcolor-green">融券↓</td>
								<{/if}>
								<td><{$val.sell_num}></td>
								<td>-<{$val.cost}></td>
								<td><{$val.save_money}>/<{$val.save_day}>天</td>
								<td>-<{$val.manage_money}></td>
								<td>-<{$val.stamp_money}></td>
								<{if $val.total_gain < 0}>
								<td class="xinsu-fontcolor-green"><{$val.total_gain}></td>
								<{else}>
								<td class="xinsu-fontcolor-red"><{$val.total_gain}></td>
								<{/if}>
							</tr>
							<{/foreach}>
							<tr>
								<td colspan="13" style="text-align:right;">盈亏合计：<{if $total_gain > 0}><span class="xinsu-fontcolor-red"><{else}><span class="xinsu-fontcolor-green"><{/if}><{$total_gain}></span></td>
							</tr>
							<{else}>
							<tr>
								<td colspan="13">暂无数据</td>
							</tr>
							<{/if}>
						</tbody>
					</table>
				</div>
				<div class="xinsu-page">
					<div class="xinsu-show">
						<{$page}>
					</div>
					<div class="xinsu-clear"></div>
				</div>
			</div>
		</div>
<{include file="public/footer.html"}>